%合并csv文件到一个文件
csvFiles = string({dir('Merge*.csv').name}');
allDateTable=[];
for i=1:length(csvFiles)
    fileName=csvFiles(i);    
    if(i==1)
        allDateTable=readtable(fileName);
    else
        oneDateTable=readtable(fileName);
        allDateTable=union(allDateTable,oneDateTable,'stable');
    end    
end
dateString=datestr(datetime('now'),'yyyy-mm-dd_HH_MM_SS');
% mergeFileName=append('MergeBinderDataSet_',dateString,'.csv');
mergeFileName=append('MergeBinderDataSet_Total.csv');
writetable(allDateTable,mergeFileName);
